package com.chf.job.dao;

import com.chf.job.pojo.Deliver;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DeliverMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Deliver record);

    int insertSelective(Deliver record);

    Deliver selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Deliver record);

    int updateByPrimaryKey(Deliver record);

    List<Deliver> getByCompanyEmail(String email);

    int updateDeliverStatus(@Param("email") String email, @Param("status") Integer status, @Param("companyEmail") String companyEmail);

    List<Deliver> getByCompanyEmailAndStatus(String email);

    List<Deliver> getByCompanyEmailStatus(String email);
}